﻿<%@ Page Title="" Language="C#" MasterPageFile="~/aspnet/testPargrameDir/site/Main.master" AutoEventWireup="true" CodeFile="StuManager.aspx.cs" Inherits="aspnet_testPargrameDir_site_Member_StuManager" %>

<%@ Register Src="../ascx/MembeMenu.ascx" TagName="MembeMenu" TagPrefix="uc1" %>
<%@ Register Assembly="Bocom.ZH.Tong.Validate.WebFormCheck" Namespace="Bocom.ZH.Tong.Validate.WebFormCheck" TagPrefix="Tong" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainBodyContent" runat="Server">
   
    <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="layout-banner-a">
            <br />
            <br />
            <h1>会员专区</h1>
        </div>
        <div class="layout-body-bg layout-martop30px">
            <table>
                <tr>
                    <td>
                        <div class="ten   layout-671px" id="MainContent">
                            <fieldset style="height: 80%;">
                                <legend>欢迎您:<%=stud.姓名  %> 会员号:<%=stud.学号 %></legend>
                                <div class="center">
                                    <strong><span class="selected">每日评语</span></strong>
                                </div>
                                <hr />
                                <div>

                                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td width="145">日期(如:2013-01-01)</td>
                                            <td width="150">
                                                <asp:TextBox ID="txtDate" runat="server" MaxLength="10"></asp:TextBox>
                                                <cc1:CalendarExtender ID="txtDate_CalendarExtender" runat="server" Enabled="True" Format="yyyy-MM-dd" TargetControlID="txtDate">
                                                </cc1:CalendarExtender>
                                            </td>
                                            <td width="150">
                                                <asp:Button ID="Search" runat="server" Text="搜索" Width="126px" OnClick="Search_Click" />
                                            </td>
                                            <td>
                                               
                                                <input type="submit" name="dd" value="显示全部" id="gf" onclick="window.location.href ='<%="/aspnet/testPargrameDir/site/Member/StuManager.aspx"%>'; return false;" />

                                            </td>
                                        </tr>
                                    </table>
                                    <hr />
                                    <div>

                                        <div class="center">
                                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" UrlPaging="true" OnPageChanged="AspNetPager1_PageChanged" PageSize="30">
                                            </webdiyer:AspNetPager>
                                        </div>

                                        <asp:GridView ID="grid" Width="100%" runat="server" AllowSorting="True"
                                             EmptyDataText="没有记录"
                                             BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" AutoGenerateColumns="False" DataKeyNames="自动编号" >
                                            <Columns>
                                                <asp:BoundField DataField="自动编号" HeaderText="自动编号" ReadOnly="True" SortExpression="自动编号" />
                                                <asp:BoundField DataField="学号" HeaderText="会员号" SortExpression="学号" />
                                                <asp:BoundField DataField="姓名" HeaderText="姓名" SortExpression="姓名" />
                                                <asp:BoundField DataField="评语日期" HeaderText="评语日期" SortExpression="评语日期" DataFormatString="{0:yyyy-MM-dd}" />
                                                <asp:BoundField DataField="班级名称" HeaderText="班级名称" SortExpression="班级名称" />
                                                <asp:TemplateField HeaderText="操作">
                                                    <ItemTemplate>
<%--                                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("学号", "/Admin/Show.aspx?stid={0}&d={1}&s={2}&userModel=true") %>' Target="_blank" Text="查看详细信息(Details)"></asp:HyperLink>--%>
                                                        <a href="<%#string.Format("Admin/Show.aspx?stid={0}&d={1}&s={2}&userModel=true",Eval("学号") , Server.UrlEncode(((  DateTime)Eval("评语日期")) .ToString("yyyy-MM-dd")),Server.UrlEncode( Eval("班级名称") as string)) %>" target="_blank">查看详细信息(Details)</a>
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                                            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                                            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                                            <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                                            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                                            <SortedAscendingCellStyle BackColor="#FFF1D4" />
                                            <SortedAscendingHeaderStyle BackColor="#B95C30" />
                                            <SortedDescendingCellStyle BackColor="#F1E5CE" />
                                            <SortedDescendingHeaderStyle BackColor="#93451F" />
                                        </asp:GridView>
                                        <asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=DBEntities" DefaultContainerName="DBEntities" EnableFlattening="False" EntitySetName="CX_PingYuIndex">
                                        </asp:EntityDataSource>
                                        <div class="center">
                                            <webdiyer:AspNetPager ID="AspNetPager2" runat="server" CloneFrom="AspNetPager1">
                                            </webdiyer:AspNetPager>
                                        </div>


                                    </div>

                                </div>
                            </fieldset>




                        </div>
                    </td>
                    <td>&nbsp;</td>
                    <td class="layout-td"></td>
                    <td style="position: relative">
                        <div class="layout-right142px">
                            <uc1:MembeMenu ID="MembeMenu1" runat="server" />
                        </div>
                    </td>
                </tr>
            </table>
            <br />
            <br />
        </div>
    </form>
</asp:Content>
